package cn.janescott.inner.space.lib.constant;

/**
 * 公共枚举
 *
 * @author scott
 * @date 2018/8/1
 */
public class CommonEnums {

    /**
     * result code
     */
    public enum RESULT_CODE {
        //
        C_200(200),
        //
        C_400(400),
        //
        C_500(500)
        ;

        RESULT_CODE(int code) {
            this.code = code;
        }

        private int code;

        public int getCode() {
            return code;
        }
    }

    /**
     * result status
     */
    public enum RESULT_STATUS {
        //成功
        SUCCESS("SUCCESS"),
        //失败
        FAILURE("FAILURE");

        private String status;

        RESULT_STATUS(String status) {
            this.status = status;
        }

        public String getStatus() {
            return status;
        }
    }

    public enum RESULT_MESSAGE {
        //未知异常
        UNKNOWN("");

        private String message;

        RESULT_MESSAGE(String message) {
            this.message = message;
        }

        public String getMessage() {
            return message;
        }
    }
}
